package com.atguigu.gmall.list.service;

import com.atguigu.gmall.model.list.Goods;
import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.ElasticsearchClient;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface SearchService {

    /**
     * 上架
     * @param skuId
     */
    public void upperGoods(Long skuId);


    /**
     * 下架商品列表
     * @param skuId
     */
    public void lowerGoods(Long skuId);

    /**
     * 跟新热点
     * @param skuId
     */
    void incrHotScore(Long skuId);

    /**
     * 查询商品列表
     * @param searchParam
     * @return
     */
    SearchResponseVo search(SearchParam searchParam) throws Exception;
}
